import request from '@/config/request'

// /** 货代计划 */
// export const forwardPlan = (data) => {
// 	return request('purchase/transport', 'get', data, true);
// };
export const getSysConfig = () => {
	return request.get('config');
};
export const getWarehouselist = () => {
	return request.get('wms/warehouse');
};
export const getVendorlist = () => {
	return request.get('purchase/vendor');
};

export const forwardPlan = (data) => {
	return request.get('purchase/transport', {params: data});
};
// /** 创建货代单 */
// export const createForward = (data) => {
// 	return request('purchase/transport/createOrder', 'post', data);
// };
/** 货代单列表 */
export const forwardOrderList = (data) => {
	return request.get('purchase/transport/order', { params: data} );
};
// /** 添加到货代单 */
// export const addToOrder = (data) => {
// 	return request('purchase/transport/addToOrder', 'post', data);
// };

// class Forward {

// 	constructor() {};
	
// 	forwardPlan() {
// 		return request.post('purchase/transport', data);
// 	};

// }
